package com.minshenglife.zanzan.service;

import java.util.List;

import com.minshenglife.zanzan.entity.weixin.Material;

/**
 * 微信素材service
 * @author jianghaibo
 *
 */
public interface MaterialService {

	/**
	 * 通过主键查询
	 * @param materialId
	 * @return
	 */
	Material get(Long materialId);

	/**
	 * 添加素材
	 * @param material
	 * @return
	 */
	Material add(Material material);

	/**
	 * 修改素材
	 * @param material
	 */
	void update(Material material);

	/**
	 * 删除素材
	 * @param material
	 */
	void delete(Material material);

	/**
	 * 素材列表
	 * @param material
	 * @return
	 */
	List<Material> findAll(Material material);

}
